package com.zcr.service.Impl;

import lombok.SneakyThrows;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Service
public class MyCheck {


//    @Scheduled(initialDelay = 1000,fixedDelay = 5000)
//    public void check(){
//        System.out.println("zhixzhix "+ LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
//    }



}
